<?php
declare(strict_types = 1);

namespace App\Models\Emo;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class EmoGroup extends BaseModel
{
    protected $table = "emo_group";

    protected $fillable = [
        "uid",
        "title",
        "views",
        "count",
        "is_show",
        "group_tag_uid",
    ];

    public function tag(): BelongsTo
    {
        return $this->belongsTo(EmoGroupTag::class, "group_tag_uid", "uid");
    }
}
